﻿@model BannerModel

<div asp-validation-summary="All"></div>
<input asp-for="Id" type="hidden" />

@(await Html.LocalizedEditor<BannerModel, BannerLocalizedModel>("banner-localized",
    @<div class="form-horizontal">
    <div class="form-body">
        <div class="form-group">
            <admin-label asp-for="@Model.Locales[item].Name" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="@Model.Locales[item].Name" />
                <span asp-validation-for="Locales[item].Name"></span>
            </div>
        </div>
        <div class="form-group">
            <admin-label asp-for="@Model.Locales[item].Body" />
            <div class="col-md-9 col-sm-9">
                <admin-input asp-for="@Model.Locales[item].Body" asp-template="RichEditor" />
                <span asp-validation-for="Locales[item].Body"></span>
            </div>
        </div>
        <input type="hidden" asp-for="@Model.Locales[item].LanguageId" />
    </div>
</div>
    ,
    @<div class="form-horizontal">
         <div class="form-body">
             <div class="form-group">
                 <admin-label asp-for="Name" />
                 <div class="col-md-9 col-sm-9">
                     <admin-input asp-for="Name" />
                     <span asp-validation-for="Name"></span>
                 </div>
             </div>
             <div class="form-group">
                 <admin-label asp-for="Body" />
                 <div class="col-md-9 col-sm-9">
                     <admin-input asp-for="Body" asp-template="RichEditor" />
                     <span asp-validation-for="Body"></span>
                 </div>
             </div>
         </div>
    </div>
    ))
